package com.cmti.skeleton.util;

import java.util.Properties;

public abstract class Constants {

    /**
     * 验证码
     */
    public static final String RANDOM_CODE = "randomCode";
    // 部署时图片的实际保存路径
    public static String IMAGE_UPLOAD_PATH = "";
    // 预览图片使用的URL
    public static String IMAGE_PREVIEW_URL = "";
    //定义部门json常量
    public static final String DEPTLIST_JSON = "DEPTLIST_JSON";

    static {
        try {
            Properties prop = new Properties();
            prop.load(Constants.class.getResourceAsStream("/miscellaneous.properties"));
            IMAGE_PREVIEW_URL = prop.getProperty("imagePreviewUrl");
            IMAGE_UPLOAD_PATH = prop.getProperty("imageUploadPath");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
